#ifndef __MEM_LEAK_CHK_H_
#define __MEM_LEAK_CHK_H_

#include <stdio.h>

#define ENTER_TYPE_LINUX
#ifdef ENTER_TYPE_LINUX
#define ENTER_LEN 1
#define ENTER_STR "\n"
#endif
#ifdef ENTER_TYPE_WINDOWS
#define ENTER_LEN 2
#define ENTER_STR "\r\n"
#endif

extern "C" {
    void *__real_malloc(size_t size);
    void *__real_calloc(size_t nmemb, size_t size);
    void *__real_realloc(void *ptr, size_t size);
    void __real_free(void *ptr);

    //void* __real__Znaj(unsigned int c);
    void* __real__Znam(unsigned int c);

    //void* __real__Znwj(unsigned int c);
    void* __real__Znwm(unsigned int c);

    void __real__ZdlPv(void* ptr);
    void __real__ZdaPv(void* ptr);
}

#endif